<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
class Core_Plugin_Router extends Zend_Controller_Plugin_Abstract
{
  public function routeStartup(Zend_Controller_Request_Abstract $request)
  {
		$front = Zend_Controller_Front::getInstance();
		$front->getRouter()->addRoute('module/subfolder', 
			new Core_Controller_Router_Route_Module(array(), $front->getDispatcher(), $front->getRequest()));
  }
 
  public function routeShutdown(Zend_Controller_Request_Abstract $request)
  {
  }
 
  public function dispatchLoopStartup(Zend_Controller_Request_Abstract $request)
  {
  }

  public function preDispatch(Zend_Controller_Request_Abstract $request)
  {
  }

  public function postDispatch(Zend_Controller_Request_Abstract $request)
  {
  }

  public function dispatchLoopShutdown()
  {
  }
}